package dw.database;
import java.sql.Connection;
import java.sql.DriverManager;

 

public class ConntectionFactory {

	public static Connection createConnection()  {
		try{
		Class.forName("com.mysql.jdbc.Driver");
		Connection conn = null;
		conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/test",
				"root", "");
		return conn;
		}
		catch(  Exception e){
			throw new RuntimeException("Failure in DB init",e);
		}
		 
	}
	
	

	
}
